package com.tidc.seaserverservice.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.tidc.seaservermodel.entity.Commitment;
import com.tidc.seaservermodel.entity.Fres;
import com.tidc.seaservermodel.exception.TidcBadParent;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020/10/7 21:01
 * @description：
 * @modified By：
 * @version:
 */
public interface SupervisorCommitmentService {
    Fres<Map<Object,Object>> getCommitmentList(int type, int pageSize, int pageNum, Authentication authentication) throws TidcBadParent;
    Fres<String> fulfillCommitment(Commitment commitment,Authentication authentication) throws JsonProcessingException;
}
